HOME = /home/snepomny

OBJS = matrix.rmh readmem.rmh readwrite.rmh compare.rmh
CuD = $(HOME)/vlsi/consoleshooter/SW
KCAsm = $(HOME)/VLSI/paco/pacoblaze-2.2/kcasm/
CMD = cd $(KCAsm); java -Dkcpsm=3 -Dbram=16 -Dmodule=a KCAsm 

project : $(OBJS)

readwrite.rmh: readwrite.psm
	 $(CMD) $(CuD)/$? $(CuD)/$@

compare.rmh: compare.psm
	$(CMD) $(CuD)/$? $(CuD)/$@	

matrix.rmh : matrix.psm
	$(CMD) $(CuD)/$? $(CuD)/$@
	
readmem.rmh : readmem.psm
	$(CMD) $(CuD)/$? $(CuD)/$@
